package com.czwj.service;

import java.util.List;
import java.util.Map;

import com.czwj.entities.Equipment;

/**
* @ClassName: EquipmentService
* @Description: TODO
* @author H
* @date 2020年4月9日
*
*/
public interface EquipmentService{

	/**
	* @Title: search
	* @Description: TODO
	* @param map
	* @return 参数 
	* @return List<Equipment> 返回类型
	* @throws
	*/
	List<Equipment> search(Map<String,Object> map);

	/**
	* @Title: count
	* @Description: TODO
	* @param map
	* @return 参数 
	* @return int 返回类型
	* @throws
	*/
	int count(Map<String,Object> map);

	/**
	* @Title: update
	* @Description: TODO
	* @param equipment
	* @return 参数 
	* @return int 返回类型
	* @throws
	*/
	int update(Equipment equipment);

	/**
	* @Title: insert
	* @Description: TODO
	* @param equipment
	* @return 参数 
	* @return int 返回类型
	* @throws
	*/
	int insert(Equipment equipment);

	/**
	* @Title: delete
	* @Description: TODO
	* @param id
	* @return 参数 
	* @return int 返回类型
	* @throws
	*/
	int delete(int id);

	/**
	* @Title: selectByPrimaryKey
	* @Description: TODO
	* @param id
	* @return 参数 
	* @return Equipment 返回类型
	* @throws
	*/
	Equipment selectByPrimaryKey(Integer id);

	List<Equipment> searchWithPressure(Map<String, Object> map);

	Equipment selectWithPressureByPrimaryKey(Integer id);

	Equipment findByCode(String imei);
}
